export default {
  tag: "el-form",
  config: {
    props: {
      labelPosition: "right",
      rules: {},
      model: {
        name: null,
        age: null,
      },
    },
    style: {
      width: "600px",
    },
  },
  children: [
    {
      tag: "el-col",
      config: {
        props: {
          span: 24,
          offset: 0,
          push: 0,
          pull: 0,
          tag: "div",
        },
      },
      children: [
        {
          tag: "el-form-item",
          config: {
            props: {
              prop: "name",
              label: "姓名",
              labelWidth: "100px",
            },
          },
          children: [
            {
              tag: "el-input",
              config: {
                props: {
                  value: "",
                  __field: "name",
                },
                on: {},
              },
            },
          ],
        },
      ],
    },
    {
      tag: "el-col",
      config: {
        props: {
          span: 12,
          offset: 0,
          push: 0,
          pull: 0,
          tag: "div",
        },
      },
      children: [
        {
          tag: "el-form-item",
          config: {
            props: {
              prop: "age",
              label: "年龄",
              labelWidth: "100px",
            },
          },
          children: [
            {
              tag: "el-input",
              config: {
                props: {
                  value: "",
                  __field: "age",
                },
                on: {},
              },
            },
          ],
        },
      ],
    },
    {
      tag: "el-col",
      config: {
        props: {},
      },
      children: [
        {
          tag: "el-button",
          config: {
            props: {
              type: "primary",
              size: "small ",
            },
            domProps: {
              innerHTML: "提交",
            },
          },
          events: [
            {
              eventName: "click",
              executor: {
                name: "service",
                config: {
                  url: "",
                  method: "post",
                },
              },
            },
          ],
        },
        {
          tag: "el-button",
          config: {
            props: {
              type: "",
              size: "small ",
            },
            domProps: {
              innerHTML: "重置",
            },
          },
        },
      ],
    },
  ],
};
